package org.hackystat.ui.projectviewer.gwt.client.common.types;

import java.util.HashMap;

import com.google.gwt.user.client.rpc.IsSerializable;

/**
 * Provides the envelope to transfer project summary data.
 * 
 * @author Pavel Senin.
 * 
 */
public class ProjectSummaryData implements IsSerializable {

  private Integer dataInstances;
  private HashMap<String, String> dataSummary;

  /**
   * Sets the number of data instances for the project.
   * 
   * @param numInstances The number of instances.
   */
  public void setDataInstances(Integer numInstances) {
    this.dataInstances = numInstances;
  }

  /**
   * Sets the data summary map.
   * 
   * @param dataInstances The data summary.
   */
  public void setDataSummary(HashMap<String, String> dataInstances) {
    this.dataSummary = dataInstances;
  }

  /**
   * Report the amount of data entries.
   * 
   * @return The amount of data entries.
   */
  public Integer getDataInstances() {
    return this.dataInstances;
  }

  /**
   * Report the summary of all SDT entries.
   * 
   * @return The summary of all SDT entries.
   */
  public HashMap<String, String> getDataSummary() {
    return this.dataSummary;
  }
}
